<!DOCTYPE html>
<html lang="zh">
<html xmlns:th="http://www.thymeleaf.org">
<!-- themeleaf 引入通用的js 片段-->
<div th:fragment="footer">
    <!--页脚-->
    <nav class="navbar navbar-default navbar-fixed-bottom" role="navigation">
        <div class="container-fluid">
            <div class="navbar-inner navbar-content-center">
                <div align="center" style="padding-top: 15px;">
                    Copyright © 2020 许秋冬 <a href="http://www.beian.gov.cn/"  target="_blank">皖ICP备20011253号 </a>
                </div>
            </div>
        </div>
    </nav>
    <script th:inline="javascript" type="text/javascript">
        var base_url = /*[[@{/}]]*/'';
        var ctx = base_url;
        var project_prefix = ctx;
        //附件访问前缀:  前缀/id
        var file_prefix ="/attachment/visit/";
        var storage = window.storage || {get:function(){}};
        var htx = [[${#httpServletRequest.getScheme() + "://" + #httpServletRequest.getServerName() + (#httpServletRequest.getServerPort()==80?"":(":"+#httpServletRequest.getServerPort())) + #httpServletRequest.getContextPath()}]];
    </script>
    <script th:src="@{/js/jquery.js}"></script>
    <!-- Bootstrap 3.3.7 -->
    <script th:src="@{/assets/lib/bootstrap3.3.7/js/bootstrap.min.js}"></script>
    <!-- jquery ui-->
    <script th:src="@{/assets/lib/jquery-ui-1.12.1/jquery-ui.min.js}"></script>

    <!--jquery的一点扩展-->
    <script th:src="@{/js/jquery-extends.js}"></script>
    <!--自己些的分页插件-->
    <script th:src="@{/js/jquery-pager.js}"></script>
    <!--nojs 相关-->
    <script th:src="@{/js/nojs.js}"></script>
    <script th:src="@{/js/nojs-module-file.js}"></script>

    <script th:src="@{/js/nojs-module-file.js}"></script>
    <script th:src="@{/js/TagCloud.min.js}"></script>
    <script th:src="@{/js/blog.common.js}"></script>
    <script>
        $(function(){
            //点击确认按钮
            $(document).keypress(function(e) {
                if (e.which == 13){
                    $("#nav-search button").trigger("click");
                }
            });
            $("#nav-search button").on("click", function(){
                var keyword = $("#nav-search input").val();
                if(!keyword) return;
                var searchUrl = htx + "/search?keyword=" + keyword;
                window.open(searchUrl);
            });
        });
    </script>

</div>